package com.example.haoqisystem.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CreateLectureRequest {
    @ApiModelProperty(value = "课程名",required = true)
    private String lectureName;

    @ApiModelProperty(value = "课程内容")
    private String lectureContent;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开课时间")
    private Date lectureTime;

    @ApiModelProperty(value = "开课地点")
    private String lecturePlace;

    @ApiModelProperty(value = "讲师id")
    private Long teacherId;

    @ApiModelProperty(value = "培训计划id")
    private Long trainningPlanId;
}
